package game.entity.process;

import game.entity.Entity_A;
import game.gamestate.GameState;

import java.util.List;

public class UpdateProcess<T extends Entity_A> implements EntityProcessor_I<T> {

	@Override
	public int process(List<T> entities, GameState gameState, int time) {
		if(entities == null || entities.size() == 0) {
			return 0;
		}
		for(T ent : entities) {
			ent.update(gameState, time);
		}
		return entities.size();
	}
}